package cn.lyn4ever.cataccount.controller;

import cn.lyn4ever.cataccount.entity.ApiDescription;
import cn.lyn4ever.cataccount.service.ApiDescriptionService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (ApiDescription)表控制层
 *
 * @author makejava
 * @since 2019-09-21 16:21:50
 */
@RestController
@RequestMapping("apiDescription")
public class ApiDescriptionController {
    /**
     * 服务对象
     */
    @Resource
    private ApiDescriptionService apiDescriptionService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ApiDescription selectOne(Integer id) {
        return this.apiDescriptionService.queryById(id);
    }

}